package file1;

import java.io.File;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要创建的文件夹：");
        String name = scan.nextLine();
        File file = new File("./" + name);
        if (!file.exists()) {
            file.mkdirs();
            System.out.println("已创建");
        } else {
            System.out.println("已存在");
        }
    }
}
